﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using snat.model.events;
using snat.proxy.items;

namespace snat.model.Monitors.Time
{
    public abstract class MessageTimeMonitor : Monitor<TimeArgs>{
        private DateTime period;
        public DateTime Period { get { return period; } }

        public EventHandler<MessageArgs> MessageEvent;

        public MessageTimeMonitor( EventHandler<MessageArgs> _source,DateTime _period) {
            this.period = _period;
            _source += OnMessage;
        }



        public abstract void OnMessage(object src, MessageArgs m);


        public event EventHandler<TimeArgs> Matched;

    }
}
